import request from '@/utils/request'


export function projectChangeRequestAdd(data) { //变更-添加
    return request({
        url: '/project-management/api/projectChangeApproval/add',
        method: 'POST',
        data
    })
}
export function projectChangeRequestEdit(data) { //变更-修改
    return request({
        url: '/project-management/api/projectChangeApproval/edit',
        method: 'post',
        data
    })
}
export function projectChangeRequestDetail(data) { //变更-详情
    return request({
        url: '/project-management/api/projectChangeApproval/detail',
        method: 'post',
        data
    })
}

export function projectChangeRequestSaveSubmit(data) { //变更-保存并提交
    return request({
        url: '/project-management/api/projectChangeApproval/commit',
        method: 'POST',
        data
    })
}

export function projectChangeRequestList(data) { //变更查看-列表
    return request({
        url: '/project-management/api/projectChangeApproval/page',
        method: 'POST',
        data
    })
}
export function projectChangeRequestListAllShenpi(data) { //变更查看-审批列表
    return request({
        url: '/project-management/api/project/process/audit/change/page',
        method: 'POST',
        data
    })
}
export function projectChangeRequestExport(data) { //变更查看-导出
    return request({
        url: '/project-management/api/projectChangeApproval/export/word',
        method: 'POST',
        responseType: 'arraybuffer',
        data
    })
}
export function projectChangeRequestDelete(data) { //变更查看-删除
    return request({
        url: '/project-management/api/projectChangeApproval/del',
        method: 'POST',
        data
    })
}

